# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=stm32flash
pkgver=0.5
pkgrel=1
pkgdesc="Flash STM32 ARM SoCs using built-in ST serial bootloader over UART or I2C"
url="https://sourceforge.net/p/stm32flash/wiki/Home/"
arch="all"
license="GPL-2.0-or-later"
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname"
options="!check" # no test suite

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="a01875a315d92d5e347372b736f2afa2f633851bf13af1326341c0c91e17cef54b6730ed1279280e86d3797033c856dfc25e8c595e010772b9287aaf965273f9  stm32flash-0.5.tar.gz"
